<template>
  <el-card shadow="never">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <el-form :inline="true" :model="searchModel" size="small" >
        <el-form-item label="公司名称">
          <el-input v-model="searchModel.companyName" placeholder="公司名称"></el-input>
        </el-form-item>
        <el-form-item label="建筑楼">
          <dict-select-tag
            v-model="searchModel.locationBuilding"
            placeholder="请选择建筑"
            :triggerChange="true"
            dictCode="building"
          />
        </el-form-item>
        <el-form-item label="房间名称">
          <el-input v-model="searchModel.roomName" placeholder="房间名称"></el-input>
        </el-form-item>
        <el-form-item>
              <span style="float: left;overflow: hidden;" class="">
                  <el-button type="primary" @click="searchQuery" icon="el-icon-search">查询</el-button>
                  <el-button type="primary" @click="searchReset" icon="el-icon-refresh" style="margin-left: 8px">重置</el-button>
              </span>
        </el-form-item>
      </el-form>
    </div>
    <!-- 操作按钮区域 -->
    <div class="table-operator">

    </div>
    <!-- 公司列表 -->
    <div class="project">
      <el-table size="small" :data="dataSource" border style="width: 100%" :header-cell-style="{background:'#eef1f6',color:'#606266'}">
        <el-table-column prop="companyName" label="公司名称" ></el-table-column>
        <el-table-column prop="locationBuilding_dictText" label="建筑楼" >
        </el-table-column>
        <el-table-column prop="locationFloor" label="楼层" ></el-table-column>
        <el-table-column prop="roomName" label="房间名称" ></el-table-column>
      </el-table>
      <pagination
        :total="ipagination.total"
        :page.sync="ipagination.current"
        :limit.sync="ipagination.pageSize"
        @pagination="loadData"
      ></pagination>
    </div>
  </el-card>

</template>

<script>
  import { SingleTableMixins } from '@/mixins/SingleTableMixins'
  import Pagination from '@/components/Pagination'
  import { deleteAction, getAction,downFile } from '@/api/manage'


  export default {
    name: 'idManage',
    mixins: [ SingleTableMixins ],
    components: { Pagination},
    data() {
      return {
        url:{
          list: "/address/list"
        },
      }
    },
  }
</script>

<style scoped>

</style>
